#ifndef QBINARYRPC_REQUEST_H
#define QBINARYRPC_REQUEST_H

#include "qvariant.h"

namespace qbinaryrpc {
class Request {
public:
  Request();
  Request(int, const QString &, const QList<QVariant> &);
  bool isNull() const;
  int getId() const;
  QString getMethodName() const;
  QList<QVariant> getParameters() const;
  bool setContent(const QByteArray &, int &);
  QByteArray composeRequest() const;
private:
  int id;
  bool is_null;
  QString method_name;
  QVariantList parameters;
};

} //namespace qbinaryrpc
#endif //QBINARYRPC_REQUEST_H
